package com.cashmama.market.api.domain.vo.order.repayment;

import com.qianli.cashmama.pay.client.enums.PaymentChannelEnum;

import java.math.BigDecimal;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2019-12-25 21:26
 **/
public class RepaymentChannelConfig {

    /**
     * 渠道编号
     */
    private int id;
    /**
     * 渠道名称
     */
    private String name;
    /**
     * 渠道LOGO
     */
    private String icon;
    /**
     * 渠道费  两种计费方式
     * 一是固定金额
     * 二是 金额*渠道费率
     */
    private BigDecimal channelServiceFee;
    /**
     * 渠道费率
     */
    private BigDecimal rate;

    /**
     * 对应的支付中心渠道
     */
    private PaymentChannelEnum paymentChannelEnum;

    /**
     * 只有白名单用户(userCode)才能看到此通道
     * 用于灰度发布
     */
    private String userCodeWhiteList;

    public int getId() {
        return id;
    }

    public RepaymentChannelConfig setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public RepaymentChannelConfig setName(String name) {
        this.name = name;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public RepaymentChannelConfig setIcon(String icon) {
        this.icon = icon;
        return this;
    }

    public BigDecimal getChannelServiceFee() {
        return channelServiceFee;
    }

    public RepaymentChannelConfig setChannelServiceFee(BigDecimal channelServiceFee) {
        this.channelServiceFee = channelServiceFee;
        return this;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public RepaymentChannelConfig setRate(BigDecimal rate) {
        this.rate = rate;
        return this;
    }

    public PaymentChannelEnum getPaymentChannelEnum() {
        return paymentChannelEnum;
    }

    public RepaymentChannelConfig setPaymentChannelEnum(PaymentChannelEnum paymentChannelEnum) {
        this.paymentChannelEnum = paymentChannelEnum;
        return this;
    }

    public String getUserCodeWhiteList() {
        return userCodeWhiteList;
    }

    public RepaymentChannelConfig setUserCodeWhiteList(String userCodeWhiteList) {
        this.userCodeWhiteList = userCodeWhiteList;
        return this;
    }
}
